﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for DateStuff
/// </summary>
public class DateStuff
{
	public DateStuff()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public static string getdayType(int iday)
    {
        if (iday == 1 || iday == 21 || iday == 31)
        {
            return "st";
        }
        else if (iday == 2 || iday == 22)
        {
            return "nd";
        }
        else if (iday == 3 || iday == 23)
        {
            return "rd";
        }
        else
        {
            return "th";
        }
    }

    public static string getmonthType(int imonth)
    {
        if (imonth == 1)
        {
            return "January";
        }
        else if (imonth == 2)
        {
            return "February";
        }
        else if (imonth == 3)
        {
            return "March";
        }
        else if (imonth == 4)
        {
            return "April";
        }
        else if (imonth == 5)
        {
            return "May";
        }
        else if (imonth == 6)
        {
            return "June";
        }
        else if (imonth == 7)
        {
            return "July";
        }
        else if (imonth == 8)
        {
            return "August";
        }
        else if (imonth == 9)
        {
            return "September";
        }
        else if (imonth == 10)
        {
            return "October";
        }
        else if (imonth == 11)
        {
            return "November";
        }
        else if (imonth == 12)
        {
            return "December";
        }
        else
        {
            return "January";
        }


    }




}
